#pragma once

#include <fcntl.h>

class Util
{
    public:
    static void SetNoBlock(int fd)
    {
        int fl = fcntl(fd, F_GETFL);
        fcntl(fd, F_SETFL, fl | O_NONBLOCK);
    }
};